export type ImgCode =
	| 2214001
	| 4214002
	| 3106013
	| 4214006
	| 3214003
	| 3214004
	| 4214007;
export type ImgResult =
	| "push1"
	| "push2"
	| "push3"
	| "push4"
	| "push5"
	| "push6"
	| "repair"
	| 1;
// 定义API返回数据结构
export interface ApiResponse<T> {
	code: number;
	msg?: string;
	data: T;
}
export interface EventCodeItem {
	code: string | number;
	info: string;
}
// 定义消息项类型
export interface MsgItem {
	code: string;
	isRead: boolean;
	// 其他字段根据实际API补充
	[key: string]: any;
}

// 时间格式化选项
export type TimeFormatOptions = {
	showSeconds?: boolean;
	separator?: string; // 日期分隔符
};

// 时区类型（根据业务扩展）
export type Timezone = string | "UTC" | "Asia/Shanghai" | "America/New_York";
export interface PushTitleItem {
	code: string | number;
	ch: string;
	en: string;
	type: string;
}
export interface EventItem {
	device_name?: string;
	device_sn: string;
	msg?: string;
	code: string;
}
// 语言映射类型
export interface LangMap {
	zh?: string;
	en?: string;
	[key: string]: string | undefined; // 允许其他语言键
}

// 函数返回值类型
export type ParseMsgResult = string | LangMap;
